package cn.meizhu.org.service.impl;

import cn.meizhu.base.service.impl.BaseServiceImpl;
import cn.meizhu.org.domain.Systype;
import cn.meizhu.org.mapper.SystailMapper;
import cn.meizhu.org.mapper.SystypeMapper;
import cn.meizhu.org.service.ISystypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SystypeServiceImpl extends BaseServiceImpl<Systype> implements ISystypeService {

    @Autowired
    private SystypeMapper systypeMapper;

    @Autowired
    private SystailMapper systailMapper;

    @Override
    public void delete(Long id) {
        systailMapper.delByTypeId(id);
        systypeMapper.delete(id);

    }
}
